import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

/**
 * @Auther: zongyuan
 * @Date: 2023/3/1/001 - 03 - 01 - 21:44
 * @Description: PACKAGE_NAME
 * @version: 1.0
 */
public class TankFrame extends javax.swing.JFrame {

    public TankFrame() throws HeadlessException {
        setSize(800, 600);
        setResizable(false);
        setVisible(true);
        setTitle("tank war");
        addWindowListener(new WindowAdapter() {
            @Override
            public void windowClosing(WindowEvent e) {
                System.exit(1);
            }
        });
    }

    @Override
    public void paint(Graphics g) {
        g.fillRect(50, 50, 100, 100);
    }
}
